package com.dds.system.domain.union;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dds.common.annotation.Excel;
import com.dds.common.core.domain.BaseEntity;

/**
 * 联盟商家积分商品订单对象 union_product_order
 * 
 * @author gaolianjie
 * @date 2021-04-01
 */
public class UnionProductOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增id */
    private Integer orderId;

    /** 商品 ID */
    @Excel(name = "商品 ID")
    private Integer prodId;

    /** 订单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String userId;

    /** 商品数量  */
    @Excel(name = "商品数量 ")
    private Integer prodCount;

    /** 兑换状态: 0未兑 ,1已兑,2已过期 */
    @Excel(name = "兑换状态: 0未兑 ,1已兑,2已过期")
    private String exchangeStatus;

    /** 12位的纯数字兑换码 */
    @Excel(name = "12位的纯数字兑换码")
    private String exchangeCode;

    /** 兑换时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "兑换时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date exchangeTime;

    /** 积分兑换券总积分 */
    @Excel(name = "积分兑换券总积分")
    private BigDecimal scoreAmount;

    public void setOrderId(Integer orderId) 
    {
        this.orderId = orderId;
    }

    public Integer getOrderId() 
    {
        return orderId;
    }
    public void setProdId(Integer prodId) 
    {
        this.prodId = prodId;
    }

    public Integer getProdId() 
    {
        return prodId;
    }
    public void setOrderTime(Date orderTime) 
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime() 
    {
        return orderTime;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setProdCount(Integer prodCount) 
    {
        this.prodCount = prodCount;
    }

    public Integer getProdCount() 
    {
        return prodCount;
    }
    public void setExchangeStatus(String exchangeStatus) 
    {
        this.exchangeStatus = exchangeStatus;
    }

    public String getExchangeStatus() 
    {
        return exchangeStatus;
    }
    public void setExchangeCode(String exchangeCode) 
    {
        this.exchangeCode = exchangeCode;
    }

    public String getExchangeCode() 
    {
        return exchangeCode;
    }
    public void setExchangeTime(Date exchangeTime) 
    {
        this.exchangeTime = exchangeTime;
    }

    public Date getExchangeTime() 
    {
        return exchangeTime;
    }
    public void setScoreAmount(BigDecimal scoreAmount) 
    {
        this.scoreAmount = scoreAmount;
    }

    public BigDecimal getScoreAmount() 
    {
        return scoreAmount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("prodId", getProdId())
            .append("orderTime", getOrderTime())
            .append("userId", getUserId())
            .append("prodCount", getProdCount())
            .append("exchangeStatus", getExchangeStatus())
            .append("exchangeCode", getExchangeCode())
            .append("exchangeTime", getExchangeTime())
            .append("scoreAmount", getScoreAmount())
            .toString();
    }
}
